Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): Remove double logging of Bridge errors #6864

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

SokratisVidros
Copy link
Contributor

@SokratisVidros SokratisVidros commented Nov 5, 2024

What changed? Why was the change needed?

We log once in ExecuteBridgeRequest, so there is no need to log the error again in get-bridge-status.usecase.ts

Screenshots

The fix should remove the log entry in the red-dotted box
Screenshot 2024-11-05 at 23 34 27

We log once in ExecuteBridgeRequest so there is no need to log the error again in get-bridge-status.usecase.ts
Copy link

netlify bot commented Nov 5, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit e8faf29
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/672a8f9b17e19c00085b3583
😎 Deploy Preview https://deploy-preview-6864--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -50,13 +50,11 @@ export class BridgeController {
@Get('/status')
@UseGuards(UserAuthGuard)
async health(@UserSession() user: UserSessionData) {
const result = await this.getBridgeStatus.execute(
return this.getBridgeStatus.execute(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the HealthCheck type has a status error and is not currently used.

As part of future work, we will discuss whether Bridge errors must return a HealthCheck payload with status set to 'error'.

Copy link
Collaborator

@rifont rifont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@SokratisVidros SokratisVidros merged commit e380868 into next Nov 6, 2024
31 checks passed
@SokratisVidros SokratisVidros deleted the fix_framework_error_reporting_in_nr branch November 6, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants